<?php
namespace app\admin\controller;

use app\admin\logic\Login as LoginLogic;

class Login
{
    /**
     * 登录
     *
     * @return json
     */
    public function index()
    {
        return (new LoginLogic())->login(request()->post());
    }

    /**
     * 判断是否登录
     *
     * @return json
     */
    public function isLogin()
    {
        return (new LoginLogic())->isLogin(request()->post());
    }
}